package com.game.btnClass
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.filters.GlowFilter;

	public class SetBtn extends McBtnClass1
	{
		private var _focus:Boolean=false
		private var _mc:MovieClip
		private var _fun:Function
		public function SetBtn(mc:MovieClip,fun:Function){
			_mc=mc;
			_fun=fun;
			super(_mc,_fun);
		}
		public function set focus(value:Boolean):void
		{	
			if(!value){
				_mc.gotoAndStop(1);	
			}else{
				_mc.gotoAndStop(2);	;
			}
			_focus = value;
			
		}
		override protected function onBtnOver(E:MouseEvent):void{
			E.target.gotoAndStop(2);
		}
		override protected function onBtnOut(E:MouseEvent):void{
			if(!_focus){
				E.target.gotoAndStop(1);
			}
		}
	}
}